package com.changhongit.dao.impl;



import java.util.List;

import org.springframework.stereotype.Repository;

import com.changhongit.base.impl.BaseDaoImpl;
import com.changhongit.dao.ProductsDao;
import com.changhongit.entity.Products;


@Repository("productsDao")
public class ProductsDaoImpl extends BaseDaoImpl<Products> implements ProductsDao
{

	public List<Products> findAll() {
		return getSqlSession().selectList("products.findAll");
	}

	public void saveProduct(Products products) {
		getSqlSession().insert("products.saveProduct", products);
	}

	public void deleteProduct(String id) {
		getSqlSession().delete("products.deleteProduct", id);
	}
}
